﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200081B RID: 2075
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetSecretKeyInfoScRsp : IMessage<GetSecretKeyInfoScRsp>, IMessage, IEquatable<GetSecretKeyInfoScRsp>, IDeepCloneable<GetSecretKeyInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001A53 RID: 6739
		// (get) Token: 0x06005D0D RID: 23821 RVA: 0x000F93B7 File Offset: 0x000F75B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetSecretKeyInfoScRsp> Parser
		{
			get
			{
				return GetSecretKeyInfoScRsp._parser;
			}
		}

		// Token: 0x17001A54 RID: 6740
		// (get) Token: 0x06005D0E RID: 23822 RVA: 0x000F93BE File Offset: 0x000F75BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetSecretKeyInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A55 RID: 6741
		// (get) Token: 0x06005D0F RID: 23823 RVA: 0x000F93D0 File Offset: 0x000F75D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetSecretKeyInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06005D10 RID: 23824 RVA: 0x000F93D7 File Offset: 0x000F75D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSecretKeyInfoScRsp()
		{
		}

		// Token: 0x06005D11 RID: 23825 RVA: 0x000F93F8 File Offset: 0x000F75F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSecretKeyInfoScRsp(GetSecretKeyInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.dMLGFPFPOLL_ = other.dMLGFPFPOLL_;
			this.secretInfo_ = other.secretInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005D12 RID: 23826 RVA: 0x000F9445 File Offset: 0x000F7645
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSecretKeyInfoScRsp Clone()
		{
			return new GetSecretKeyInfoScRsp(this);
		}

		// Token: 0x17001A56 RID: 6742
		// (get) Token: 0x06005D13 RID: 23827 RVA: 0x000F944D File Offset: 0x000F764D
		// (set) Token: 0x06005D14 RID: 23828 RVA: 0x000F9455 File Offset: 0x000F7655
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001A57 RID: 6743
		// (get) Token: 0x06005D15 RID: 23829 RVA: 0x000F945E File Offset: 0x000F765E
		// (set) Token: 0x06005D16 RID: 23830 RVA: 0x000F9466 File Offset: 0x000F7666
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ByteString DMLGFPFPOLL
		{
			get
			{
				return this.dMLGFPFPOLL_;
			}
			set
			{
				this.dMLGFPFPOLL_ = ProtoPreconditions.CheckNotNull<ByteString>(value, "value");
			}
		}

		// Token: 0x17001A58 RID: 6744
		// (get) Token: 0x06005D17 RID: 23831 RVA: 0x000F9479 File Offset: 0x000F7679
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SecretKeyInfo> SecretInfo
		{
			get
			{
				return this.secretInfo_;
			}
		}

		// Token: 0x06005D18 RID: 23832 RVA: 0x000F9481 File Offset: 0x000F7681
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetSecretKeyInfoScRsp);
		}

		// Token: 0x06005D19 RID: 23833 RVA: 0x000F9490 File Offset: 0x000F7690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetSecretKeyInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && !(this.DMLGFPFPOLL != other.DMLGFPFPOLL) && this.secretInfo_.Equals(other.secretInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005D1A RID: 23834 RVA: 0x000F94F4 File Offset: 0x000F76F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.DMLGFPFPOLL.Length != 0)
			{
				num ^= this.DMLGFPFPOLL.GetHashCode();
			}
			num ^= this.secretInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005D1B RID: 23835 RVA: 0x000F955C File Offset: 0x000F775C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005D1C RID: 23836 RVA: 0x000F9564 File Offset: 0x000F7764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005D1D RID: 23837 RVA: 0x000F9570 File Offset: 0x000F7770
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DMLGFPFPOLL.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteBytes(this.DMLGFPFPOLL);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			this.secretInfo_.WriteTo(ref output, GetSecretKeyInfoScRsp._repeated_secretInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005D1E RID: 23838 RVA: 0x000F95E0 File Offset: 0x000F77E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.DMLGFPFPOLL.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeBytesSize(this.DMLGFPFPOLL);
			}
			num += this.secretInfo_.CalculateSize(GetSecretKeyInfoScRsp._repeated_secretInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005D1F RID: 23839 RVA: 0x000F9650 File Offset: 0x000F7850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetSecretKeyInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.DMLGFPFPOLL.Length != 0)
			{
				this.DMLGFPFPOLL = other.DMLGFPFPOLL;
			}
			this.secretInfo_.Add(other.secretInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005D20 RID: 23840 RVA: 0x000F96B6 File Offset: 0x000F78B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005D21 RID: 23841 RVA: 0x000F96C0 File Offset: 0x000F78C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 16U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.secretInfo_.AddEntriesFrom(ref input, GetSecretKeyInfoScRsp._repeated_secretInfo_codec);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.DMLGFPFPOLL = input.ReadBytes();
				}
			}
		}

		// Token: 0x040023F5 RID: 9205
		private static readonly MessageParser<GetSecretKeyInfoScRsp> _parser = new MessageParser<GetSecretKeyInfoScRsp>(() => new GetSecretKeyInfoScRsp());

		// Token: 0x040023F6 RID: 9206
		private UnknownFieldSet _unknownFields;

		// Token: 0x040023F7 RID: 9207
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040023F8 RID: 9208
		private uint retcode_;

		// Token: 0x040023F9 RID: 9209
		public const int DMLGFPFPOLLFieldNumber = 1;

		// Token: 0x040023FA RID: 9210
		private ByteString dMLGFPFPOLL_ = ByteString.Empty;

		// Token: 0x040023FB RID: 9211
		public const int SecretInfoFieldNumber = 13;

		// Token: 0x040023FC RID: 9212
		private static readonly FieldCodec<SecretKeyInfo> _repeated_secretInfo_codec = FieldCodec.ForMessage<SecretKeyInfo>(106U, SecretKeyInfo.Parser);

		// Token: 0x040023FD RID: 9213
		private readonly RepeatedField<SecretKeyInfo> secretInfo_ = new RepeatedField<SecretKeyInfo>();
	}
}
